package com.yao.shardingdemo.mapper;

import com.yao.shardingdemo.entity.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

/**
 * @author Henry Yao
 */
@Mapper
@Component
public interface ProductMapper {
    /**
     * 插入产品
     * @param product 产品
     */
    @Insert("insert into t_product(pid) values(#{pid})")
    void insertProduct(Product product);
}
